package com.lxq.common.exception;

import lombok.Getter;
import lombok.Setter;


/**
 * 无库存抛出的异常
 * @author lxq
 * @email xiaoqiu9099@163.com
 * @date 2021-09-03 11:04:25
 */
public class NoStockException extends RuntimeException {

    @Getter @Setter
    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id："+ skuId + "库存不足！");
    }

    public NoStockException(String msg) {
        super(msg);
    }


}
